import java.util.Scanner;
import java.lang.StringBuffer;

public class a686e2 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		StringBuffer output = new StringBuffer();
		String input;
		String[] spInput;
		int totalHeight, rise, fall;
		int m;
		boolean success;
		int days;
		int progress;
		
		while(sc.hasNext()) {
			m = Integer.parseInt(sc.nextLine());
			
			for(int i = 0; i < m; i++) {
				input = sc.nextLine();
				spInput = input.split(" ");
				
				totalHeight = Integer.parseInt(spInput[0]);
				rise = Integer.parseInt(spInput[1]);
				fall = Integer.parseInt(spInput[2]);
				
				output.setLength(0);
				
				success = true;
					if(totalHeight > rise && rise <= fall) { success = false; }
				days = 0;
				progress = 0;
				while(success) {
					days++;
					
					progress += rise;
					if(progress >= totalHeight) {
						break;
					} else {
						progress -= fall;
					}
				}
				
				if(success) {
					output.append(days);
				} else {
					output.append("Poor Snail");
				}
				
				System.out.println(output.toString());
			}
		} // next
	} // main
}